package org.imac.quizz;


public class OneQuestion{
	private String theme;
	private String question;
	private String answer1;
	private String answer2;
	private String answer3;
	private int idGoodAnswer;
	private Boolean passage;
	private int points;
	
	public OneQuestion() {
		question = "";
		answer1 ="";
		answer2 = "";
		answer3 = "";
		idGoodAnswer = 0;
		setPoints(10);
	}

	public String getTheme() {
		return theme;
	}
	public void setTheme(String theme) {
		this.theme = theme;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer(int i) {
		if (i==0) {return answer1;}
		else if (i==1) {return answer2;}
		else {return answer3;}
	}
	public String getAnswer1() {
		return answer1;
	}
	public void setAnswer1(String answer1) {
		this.answer1 = answer1;
	}
	public String getAnswer2() {
		return answer2;
	}
	public void setAnswer2(String answer2) {
		this.answer2 = answer2;
	}
	public String getAnswer3() {
		return answer3;
	}
	public void setAnswer3(String answer3) {
		this.answer3 = answer3;
	}

	public int getIdGoodAnswer() {
		return idGoodAnswer;
	}
	public void setIdGoodAnswer(int idGoodAnswer) {
		this.idGoodAnswer = idGoodAnswer;
	}
	public Boolean getPassage() {
		return passage;
	}
	public void setPassage(Boolean passage) {
		this.passage = passage;
	}
	public int getPoints() {
		return points;
	}
	public void setPoints(int points) {
		this.points = points;
	}
	
}
